.gkh-web-doc {
    height: 100%;
    position: relative;

    &>.gkh-web-doc-toolbar {
        height: 85px;
        box-shadow: 2px 0 2px 0px #616161;
        overflow-x: auto;
    }

    &>div:nth-child(2) {
        height: calc(100% - 85px);
        display: flex;
    }

    .doc-cell-select {
        width: 200px;
        overflow: auto;
        border-left: 1px solid #d9d9d9;
        padding: 12px;
        flex: 0 0 auto;

        &>div {
            height: 50%;
            overflow: auto;

            & .doc-cell-item {
                display: inline-block;
                padding: 4px;
                margin: 4px;
                border: 1px solid #d9d9d9;
                border-radius: 5px;
                cursor: pointer;

                &:hover {
                    color: #1890ff;
                }
            }
        }
    }
}

.gkh-table-template {
    position: relative;

    &>table {
        min-width: 100%;
        table-layout: fixed;
        border-spacing: 0;

        &>tbody>tr {
            overflow: hidden;

            &>td {
                height: 24px;

                &>* {
                    position: relative;
                    width: 100%;
                    height: 100%;
                    margin: 0;
                    padding: 0;
                    overflow: hidden;
                    text-align: inherit;
                    background: inherit;
                    border: 0;
                    resize: none;

                    &:focus {
                        outline: none;
                    }
                }
            }

            &>.gkh-selected {
                background-color: #e5f8fd !important;
            }

            &>.e-resize {
                cursor: e-resize;

                & * {
                    cursor: e-resize;
                }
            }

            &>.n-resize {
                cursor: n-resize;

                & * {
                    cursor: n-resize;
                }
            }

            .gkh-select {
                width: 100%;
            }
        }
    }

    .gkh-select {
        width: 100%;
    }
}


.gkh-right-menu {
    position: absolute;
    min-width: 150px;
    margin: 0;
    padding: 0;
    background-color: aliceblue;
    box-shadow: 0px 0px 5px #afb7b3;
    visibility: hidden;
    z-index: 1000000;

    &>li {
        display: flex;
        justify-content: space-between;
        min-width: 100%;
        padding: 0;
        border-bottom: 1px solid rgb(231, 230, 230);
        cursor: pointer;

        &>div {
            flex: 1 1 50%;
            margin: 2px;
            padding: 2px 8px;
        }

        &>div:hover {
            background-color: rgb(197, 223, 217);
        }

        &>.disabled {
            color: #909090;
            background-color: #e1e5e4;
            cursor: no-drop;
            pointer-events: none;
        }
    }
}

.gkh-selected {
    background-color: #e5f8fd !important;
}


.gkh-doc-container {
    position: relative;
    border: 1px solid black;
    min-height: 100px;
    vertical-align: top;

    &>*:hover {
        box-shadow: #efa6a4 0px 0px 2px 1px inset;
    }

    &>.gkh-box-moved>.gkh-box-content:hover {
        box-shadow: #efa6a4 0px 0px 2px 1px inset;
    }

    &>.gkh-text-div {
        display: inline-block;
        vertical-align: top;
        width: 100%;
    }

    &>div>div>div {
        display: inline-block;
        vertical-align: top;
        width: 100%;
    }
}

.gkh-switch {
    display: inline-block;
    border: 1px solid #1890ff;
    position: relative;
    padding: 0 4px;
    border-radius: 20px;

    &>div {
        display: inline-block;
        padding: 4px;
        cursor: pointer;
        width: 20px;
        overflow: hidden;
        white-space: nowrap;
        transition: 2s;
    }

    &>.gkh-switch-checked {
        color: #1890ff;
        width: auto;
    }
}

.gkh-focus {
    box-shadow: #a4cfef 0px 0px 2px 1px inset !important;
}
